/***
 *                    _ooOoo_
 *                   o8888888o
 *                   88" . "88
 *                   (| -_- |)
 *                    O\ = /O
 *                ____/`---'\____
 *              .   ' \\| |// `.
 *               / \\||| : |||// \
 *             / _||||| -:- |||||- \
 *               | | \\\ - /// | |
 *             | \_| ''\---/'' | |
 *              \ .-\__ `-` ___/-. /
 *           ___`. .' /--.--\ `. . __
 *        ."" '< `.___\_<|>_/___.' >'"".
 *       | | : `- \`.;`\ _ /`;.`/ - ` : | |
 *         \ \ `-. \_ __\ /__ _/ .-` / /
 * ======`-.____`-.___\_____/___.-`____.-'======
 *                    `=---='
 *
 * .............................................
 *          佛祖保佑             永无BUG
 *@author wwh
 *@date 2022年07月20日22:00
 */
package com.bm.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

@Data
@AllArgsConstructor
@TableName(value = "t_dynamic")
public class Dynamic {
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private int id;
    //用户id
    private int uid;
    //动态内容
    private String message;
    //发布动态地址
    private String location;
    //状态  公开  私密
    private String state;
    //发布的图片 限制四张图片
    private String img1;
    private String img2;
    private String img3;
    private String img4;
    private Date ctime;

    public Dynamic(int uid, String message, String location, String state, String img1, String img2, String img3, String img4) {
        this.uid = uid;
        this.message = message;
        this.location = location;
        this.state = state;
        this.img1 = img1;
        this.img2 = img2;
        this.img3 = img3;
        this.img4 = img4;
        this.ctime = new Date();
    }
}
